package VO;
import Catalog.*;

public class CatalogVO {
	long id;
	String description;
	BookListVO booklist;
	
	public CatalogVO(String info[],BookListVO bOfAll){
		id=Long.parseLong(info[0]);
		description=info[1];
		booklist=new BookListVO(bOfAll,info[2]);
	}
	public CatalogVO(Catalog catalog){
		id=catalog.getID();
		description=catalog.getDescription();
		booklist=new BookListVO(catalog.getBookList());
	}
	public long getID(){
		return id;
	}
	public String getDescription(){
		return description;
	}
	public BookListVO getBookListVO(){
		return booklist;
	}
}
